{#

This file is part of the Sonata package.

(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}

{% extends base_template %}

{% block field %}
    <div id="field_container_{{ field_element.id }}">
        <span id="field_widget_{{ field_element.id }}" >
            {{ form_field(field_element) }}
        </span>
        
        <span id="field_actions_{{ field_element.id }}" >
            <a
                href="{{ field_description.associationadmin.generateUrl('create') }}"
                onclick="start_field_dialog_form_add_{{ field_element.id }}(event)"
                class="sonata-ba-action">
                    <img
                        src="{{ asset('bundles/sonataadmin/famfamfam/add.png') }}"
                        alt="{% trans 'btn_add' from 'AdminBundle' %}"
                    />
            </a>
        </span>
        
        <div style="display: none" id="field_dialog_{{ field_element.id }}">

        </div>
    </div>

    {% include 'SonataAdminBundle:CRUD:edit_many_association_script.html.twig' %}
{% endblock %}